package cn.itsource.hrm.client;

import cn.itsource.hrm.domain.Sso;
import cn.itsource.hrm.util.AjaxResult;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class SsoClientFallbackFactory implements FallbackFactory<SsoClient> {
    @Override
    public SsoClient create(Throwable throwable) {
        return new SsoClient() {
            @Override
            public AjaxResult addOrUpdate(Sso sso) {
                return null;
            }

            @Override
            public AjaxResult delete(Long id) {
                return null;
            }

            @Override
            public Sso get(Long id) {
                return null;
            }
        };
    }
}
